package com.lxh.weekendmvc.dao;

import com.lxh.weekendmvc.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface EmpDao {
    Emp getEmpByName(@Param("ename") String ename);

    List<Emp> getEmpByKey(Map<String, String> emps);

    int addEmp(Emp emp);

    Emp getEmpByEno(@Param("eno") Integer eno);

    int updateEmp(Emp emp);

    int delEmp(@Param("eno")Integer eno);
}
